package shared; 

/**
 * BudgetBuoy
 * 
 * Simplify your personal expense management
 * 
 * @team cs2103jan13-w15-3j
 */

//--------------------------------------------------------------

/**
 * Payment Class
 * 
 * Description: Future payment object
 *              It records a single future payment plan, with the 
 *              date and amount to be paid.
 * 
 * 
 * @package shared
 * @author Li Yin (A0085686L)
 * @editor(s) -
 */


public class Payment {
	//date
	private int yy;
	private int mm;
	private int dd;
	private int amt;
	//constructor
	public Payment(int _amt, int _dd, int _mm, int _yy){
		yy=_yy;
		mm=_mm;
		dd=_dd;
		amt=_amt;
	}

	//Added by Si Ling
	public Payment(int amount, int[] date) {
		this.amt = amount;
		this.dd = date[0];
		this.mm = date[1];
		this.yy = date[2];
	}

	//toString
	@Override
	public String toString(){
		String paymentDate = dd+"/"+mm+"/"+yy;
		return paymentDate;
	}

	//**END**

	//getter
	public int getYear(){
		return yy;
	}
	public int getMonth(){
		return mm;
	}
	public int getDay(){
		return dd;
	}
	public int getAmt(){
		return amt;
	}

	public String getDateString(){
		String tempDate = dd+"/"+ mm+"/"+yy;

		return tempDate;
	}
	//**END**

	//mutators
	public void modifyYear(int newyy){
		yy=newyy;
	}
	public void modifyMonth(int newmm){
		mm=newmm;
	}
	public void modifyDay(int newdd){
		dd=newdd;
	}
	public void modifyAmt(int newAmt){
		amt=newAmt;
	}

}
